<h1>Listing addresses</h1>

<table>
  <tr>
  </tr>
  
<% for address in @addresses %>
  <tr>
	<td><%= debug address %></tr>
    <td><%= link_to 'Show', address_path(address) %></td>
    <td><%= link_to 'Edit', edit_address_path(address) %></td>
    <td><%= link_to 'Destroy', address_path(address), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New address', new_address_path %>